package com.ruoyi.rsikManage.mapper;

import com.ruoyi.rsikManage.domain.MonitorPoint;
import com.ruoyi.rsikManage.domain.VideoDiagnosisResult;
import com.ruoyi.rsikManage.domain.vo.MonitorPointDiagnosisResultVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
@Mapper
public interface VideoDiagnosisMapper {

    List<VideoDiagnosisResult> selectVideoDiagnosisResult();

    int insertVideoDiagnosisResult(VideoDiagnosisResult videoDiagnosisResult);

    int updateVideoDiagnosisResultById(VideoDiagnosisResult videoDiagnosisResult);

    int deleteVideoDiagnosisResultById(Integer id);

    int deleteVideoDiagnosisResultByIds(Integer[] ids);
    int deleteAllVideoDiagnosisResult();
    List<MonitorPoint> selectLastDiagnosisTimeInLocal();
    int recordAbnormalDiagnosticResult(@Param("monitorId") String monitorId,@Param("diagnosisAbnormalTime") Date diagnosisAbnormalTime, @Param("diagnosisResult") Integer diagnosisResult);

    void insertVideoDiagnosisResultList(List<VideoDiagnosisResult> list);

    void insertVideoDiagnosisResultListForUnitCodes(List<VideoDiagnosisResult> list);

    List<MonitorPointDiagnosisResultVo> selectHistoryDiagnosisResult(HashMap<String, Object> param);

    void recordAbnormalDiagnosticResultList(List<VideoDiagnosisResult> list);

    void recordAbnormalDiagnosticResultListForUnitCodes(List<VideoDiagnosisResult> list);

    void deleteVideoDiagnosisResultHistory();
}
